removes useless stuff