added error message for overflows