tidying up code with zend style standards