made some changes in accordance with maria's suggestions