Kaplansky density theorem