changing error returns