made static functions static