added code to modify existing data