added helper in task3