added remaining space calculation for user convenience