updated example with smooth center