added map init code