refixed P_IN