implemented basic global checking