added scope as param to function calls