made final changes. adding log