changing approach to a singleton class object