added function to create smooth areas