added  code to handle null observations