remove unused hooks
change member var access to array access