ApiController: second comparison added