separated a variable so as to know what exactly is null