renamed key; fix slice bug if smaller