change dimension detection