figuring out odd bug