fixed result appearing without target variable