How to update a Singleton Variables