added some rfind