added return value for task