changed global eval query to grab based on scale