added support for deep