problems while instantiating the singleton