change inline fns to static inline fns