being a little smarter about constants