marked some functions as statical