changed to internal variables to 'static