added create_url function