minor changes made to provide the desired log