coded end points and reversed bubble direction