moved class method to instance