added variables in main controller