added vairable controller