use helper method throughout