updated version and example