added validation to stray div