wrote input routines for prkc