gets rid of useless labels