init logica