refactored the same URL into the sub