simplify a bit