refactor task params