tweaked parameters and made update faster