removed write statement