changed object variable type from private to proteced