almost solved it