handle exception if items does not exist in index