implement part of scope check