removed callback parameter from processMethod method