added scale_up function