fixed errors, should run now