made some changes to part4