added created index functionality