fixing api