add attributes to expressions