updated p4 mode.

Author:yangyingchao, 2013-03-15