changed input var from private to protected