rejig (jig + re-; repetition_again)
To rearrange or tweak (something), especially in order to improve it or make it suitable for some purpose