refactored and finished vertical print