changed properties from private to protected