changed cin to scanf