added $index to marker