updated document selector