removed unnecessary active variable