update to use prn from input