trying to fix an odd bug