added indoor check and readjusted diagram