added static to class functions