corrected group delay calculation