show last entry function