taking off code from the index