construct expressions on the fly for missing variables