remove check_arrays stuff and old input validation