remove other result() function and refactored