fixing the use of criteria