added option to change sequence type