change some function styles to make them more readable