correct functions and target validation