Revert "fix type definitions"

This reverts commit 58c360f1129a011f4a55fd862d24572fed88816c.
fix type definitions