some refactoring, add in method to set second step of workflow to completed for items