create function for smile