changed create_tasks method not finished yet because of an other error