smiley function uses case now