updated the check