weight determination code complete