added some media size rules