cosmetic changes to the code of rfind and rsed