change declarations of some functions