added p3 and logica