change ubound to dbound