convert some methods to be static functions