add index writing record