fixed methods

fixed the singleton pattern