close method implemented
code refactoring
code refactoring
code refactoring