return value so it can be displayed on log error