replace all calls to subset with [
hopefully more performance improvements