refactored angular to module