implemented trashing