made a correct fix for previous revert