fixing some code climate problems