added error check for bad multi scale lengths