added a check

added a check