fixed earlier revert glitch