add the adjustable data length for spectrum calculation