protection for nil