optimising getbackspaced