some useless hand optimization