refactoring, change pubic Tasks method