refine style code