made changes that made it work