add rudimentary codetransformation of the selectp statement