storage filter (must be refactored)