- removed duplicate code
- uncommented code to add layer to map