put brownian_scaling in seperate file