add calc size of seq on the fly