add 1 for error code