e2 vector fix inrange

+ remove c style