added patmat assessment code