extract method for rake clean