 needs to be looked into, not even entirely sure if codewindow is the culprit