updated osm code