changes in Sigleton.java changed else condition