tests and fix for dr
dr and lr tested