moved simple_map to separate file