added writeline to check subtasks