fixed shitty code mistakes

previous commit would fail to build