changed the logical ifs for the corsscorrelation decisions