scope checking