should optimize more
fix legacy code