avoid null references