extracted etalia logic