galaxy detection working