fix space and tab bug
fix gt and lt bug
clean code