occuranceIndex working now