added the check