added max patch for testing