clean memory after projection