added debug statements with time