add 'last' to debug function explain