minor improvements to spectrogam