change method from class to instance access