adding feature for assigning method as value field