change syntax to new version of maxfiels