last is length - 1