trying to fix errors causing problems for heroku