ruby: tuning