finding bug with error