replaced instance with getInstance