added https condition