prepare for task