added extra statements for troubleshooting