add parent fn for querySelector