no errors, but doesnt run properly