added valid bit for joints and cartesian positions