potential map and contact solution