cleanup useless code