refactor and add check style file