simplifying the helper a bit