added storage capability for the input size