work on p23 taking facotrs