adapt scale size