trying to write records