removing trailing >