added functions and tasks