added function for smoke