adding doc format and changing the hierarchy