minial change for error checking