this is not running because of a strange memory error
Weird bug, but mostly working