small err and thread