updating method for heroku