updated changeOwnership to accept command line arguments