modified error message positions, modified random code