fixing active code