helper functions for expr store