added a check