validation and scope