refactored url repetitiveness