reversed bug to state before trying to fix