generalizing reference expressions