changed the function to NULLtoNA