changes to merge evaluate and associated functions and arrays