Revert "added a generic type"

This reverts commit 603e9166a065ba93768c3cb1e74bf291c4f6b602.