edited mouth close logic