added declaration of stage classes