curval
not defined yet