updated version 4