added beta smooth moving