add check style and change code to obey it