reserving the old apply function API of StorageLevel