please rename d to document