refactored boilerplate out to Utility class