break up long function
reindent