adding helper methods to DRY up code