remove unused variable CurrentProcess