removed some useless code.