update singleton method
single class case