initialized all variables in task