fix fridgei's broken code