removed extra ends