refactored normalizar method