made further edits to prevent heroku failure