prevent possible null ref exception