rm legacy fn