redoing ex of api