moved hint code