fixing error message format