boundary condition added
stage option added