removal of useless stuff