added static to all function