function added in assessviewmodel