implemented reverse name matching