adding fetch API