modified to use assignment operator