everything works on portc
tried cleaning up code, created a wtf bug