AI pledges to build more ethical systems says UN