add some class functions