changed filter_size to scale