trying to track down nil bug