fixes clone test
fixes capacity calculation