fix in statement tasks and add method call