wrap peripheral before check