removed reference to null object