field edits and added meta query filter function