change activation switch to if statements for 100% code coverage