made functions static