add function to ReplaceMiner