adding cases for null objects such as pi or program