optimise for code climate