removed useless code.