[PLF]L1 add function for d) (don't know if correct)