fixing residuum, still problematic