added levelable logic