improve rm speed