added to check scope existence