compied the  index