fix compare
fix error message to debug for update method