bug procedures