added expr conversion code