fixing how null values are processed