trying to track down a bug