added tasks for init function