Make some functions const type