added smoothening