added hashtables for handling local variables defined in where blocks
reversed the order of evaluation inside a where block. now it evaluates top to bottom