Hi! Thanks for your reply! Unfortunately, it still did not work and I still keep getting nan for all my values...