changed log stmt