init function updated

function call update