rename 'a b' to 'start end', and fixed a bug