what is the purpose of a procedure​