made some changes on upload