make local functions static