reindent this whole file with proper style.
it's completely trash.