change mem and source