rename method to reflect the purpose of the boolean parameter