prevent crash when elements don't exist