functions with RPI.