remove stray end