added function to read expressions