fixed bugs to get it to run