adding getTargetFood function