reversed order of err and results in callback to follow standard practices