make some functions static