add sequence length parameter to process