separate API for data taken