tweak parameters
working version