clean up useless code