version 4. minor changes + small bugfix