add new methods for issue #5