methods for collect and clear