copper, gold end with slight gains