removed write to log