improve equipment index function