error if peak is missing