fixing code sniffer violations