removed legacy API by replacing CAPI