Resolved expressions issue but the time exceed limitation

Resolved expressions issue but the time exceed limitation