cleanup useless bits