add helpers to make code easier to understand