changed to is_valid_item