use callback over promises in example