revert to previous state without int cast