define chaintypes correctly