range params checkings