using in instead of bool for plot