changed Distance field to map