Revert "adding wrapper function"

This reverts commit 61dd404717029db2714f99c25e42f7f31bfc054b.