fix size to what is necessary