make some funtions static