added additional obstacle avoiding behavior