changing 'work' to 'document'