checking meal logic