added stage variable