adding criteria API