[fix] make some function static