changed ternary operator arguments
record fix