fix buggy logic
commented logging