made some updates to ex51