modified to make a limit type of storage