fixed foodcritic warnings