added batch update of boxes