before map integration