removing error checking code, it does not work