buy and restrict resource to maxStorage