added max error distribution