generate step name and record in task