debugging methods added