added map output functionality