added map for list and tree