a few performance improvement questions