fix in size cache timing
fix in size calculation
Sample project added