change logic for Before on field nodes