should be checking for shouldnotthrowexception here.