works with document problems