switched batch code to normalize by mean across trials