refactored helper method to be more accessor-like