refactored the phrases template