init code with first task