changed format style to allow one-line functions and loops