code climate fixes