DEBUG and validate