added active code to setttings