used a constant for https
standardized a few methods by combining parameters