Revert "remove unused method"

This reverts commit 906a0111b570beb2d7c4a921f32f673b70deeb3b.
remove unused method