modify by tim.
add mark setting.