function(err) can be removed and just use callback