Revert "Revert "added type""

This reverts commit 3077be21e15b94c989f5528bc83ab6625d17e452.