remove unused variables. fix bad use of cc.size