refactores tasks