added separate script to add index