added missing clRetains, removed LTPV unused variables