fixed the 'cut' bug once and for all