last before change output to function