fixed off by one bug in end sequence from getSubSequence and added new