delete unnecessary switch checker in constructor with parameters