finish splitting code from data_form into BitGrid unit