added to log, work in C