fix api discrepency