implement storage size limits