remove unused lines
do logging