update mapping method