note to self left about passing logical arguments through functions