optimized some codes at claimsController