adding doc type