refactored and changed https to http