some changes in Hide method