writing to ddb, but buggy