get rid of useless code