gnm: new costs calculating expressions added to rule syntax