implemented functionality of ValidateDataDirection