added debug for troubleshooting