more compact coding style for easier reading

I am tired of having a bunch of one line functions occupy my whole
screen.