removed deprecated and add new parameter