data acquirement code complete