code style - one line functions, one line 'if', array initialization