new (working) version of Kraus