fixed two error statements to more accurately indicate what the error is