functions to validate target data