really long ternary :sadpanda: