fixed new-evenlog function