modifying log handl