add some intent code