remove check_arrays stuff and old input validation
try to fix metrics.