added joint mask