the dynamic null calculation not working