add comment to check for nil