differentiating between static and dynamic expressions