trying to write data to singltone