refactor(main) optimize: data -> data, callback