doh. Programming is hard.