added check mode and now checks at actual contents