corrected size decrementing