refactored store and delete tasks; must be tested