fixed bugs,added distribution mode::X