add helper methods to dry code