field map generation and utils