slight modification to DOM