change format of functions