Variations of maps on tori