naive iit implementation