checked for int errors