made methods non global