###saving multiple values working in loop###