still needing to correct the getSequence function