trying to track down bug