working code from borken code ! yay