improving log creation