change from, to to a open interval