replace map collision function