add error argument to results callback