removed write check