fix api formatting