fix absurd logic