closes #23, doubles in size when needed