add global storage
small fix
method