partitial 'when' applied