refactored UnsafeAccess out