modified get.sequences