fixed writing valid accounts