with the aid of caffine i slowly fix my code