made proper error return