added index increment
added reindex numerical array