allow memory and swap types