refactoring
add task define helper
refactoring