if ruby then confused syntax. sigh.