the general function on stage