added proper index