renamed loadVar to storeVar