refactored erb files