changes in log procedure