fixed error messages to reflect new length