fix length checks