moved log a bit - todo matrix work