added results producing code