with PN junction