mark functions as const and static