should just be an anonymous function to the task