added function history