refactored prettiness