made smartypants a bit smarter