reformatted code as per PSR1/2 specs