needed to stop writing after a while