Revert "removed unused method"

This reverts commit 617bb100f04402c0f83577fa934eb295ea617f1e.