Working solution, but incoherent result