refactor poems