adding criteria API example