initial kite code macro