changing local variable to instance variable in default grid