fix bugs & divide less style, working snb