refactored task using method_missin