replacing example code