couldn't locate bug, but works now