removes before and after