modified max salary check to optimize per experiments