fixing api return