added debug to types