function definitions - arrange and fix spacings.