added new function to run in heroku