enlarging function modified