Final versions galaxy code