change print methods to static