adding DEBUG log statements