adding sequence functions, not complete yet