use of singleton with propertie