connect hoisted expressions into guard calculation