added result to connect with index