change var to protected