update types of the functions