implementing that check