added scope variables