reduce complexity to get better code climate score, for vanity