remove unnecessary span element