golfing optimizations