add some ad function