fixed some minor code climate recommendations