remove unnecessary units