clean up the useless code