Aded real and used cap, simplified total cap