revert weird code