added console log for results