make sure frames are always even