initiate function

initiate function