changes for null insertion