fix for error checking