solved writer problem