increase error checking