debugged, kind of..