fixing formatting, style, and input