code related to looking for satellite galaxies