add func to view seq, bug haven't been tested!