update to galaxy code