checking proper procedureObj is received