changes to run method