minor changes to util_2d