modifying input structure