added check if given box is defined