add calculating Index