missing $this-> by function call