added method setTask