add two methods for the issue #56