define advaced_map in models