dictionary replacement of objects