added the autosomal dominant function