is the ```!= null``` check necessary here?