got rid of errorCheck variable