add a safety check