the task is consisted with goals, how to detect it.