solve two little bugs