add the function that captures on the same wavelength in times supplied