removed the printf codes