added func. spec to query