removed extra trailing lines