matlab compatibility changes