changed the check