added queries for follow-functionadded queries for follow-function