fixing some things code climate was qq'ing about