use a helper method instead of using a specified url