added sequenceMap method