fixed api discrepancy