change class methods to instance methods