make layers, maps and documents to pass