change class methods to intance methods