With experience it learns various landmarks and this "mapping" is done by magnetites in the trigeminal system, which tell the bird how strong the field is