fixed coding style issues and hint violations